package com.xxx.corejava.day1209;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test6 {
    public static void main(String[] args) throws Exception {

        Date date=new Date();

        System.out.println(date);

        DateFormat format=new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");

        System.out.println(format.format(date));

        Date d=format.parse("2222/11/11 11:11:11");

        System.out.println(d);
    }
}
